

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>The constants module &mdash; pyamp v1.2 documentation</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.2',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="top" title="pyamp v1.2 documentation" href="../index.html" />
    <link rel="up" title="The http module" href="mod_pyamp_web_http.html" />
    <link rel="next" title="The argument module" href="pyamp_web_http_argument.html" />
    <link rel="prev" title="The page module" href="pyamp_web_http_page.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="pyamp_web_http_argument.html" title="The argument module"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="pyamp_web_http_page.html" title="The page module"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">pyamp v1.2 documentation</a> &raquo;</li>
          <li><a href="mod_pyamp.html" >The pyamp module</a> &raquo;</li>
          <li><a href="mod_pyamp_web.html" >The web module</a> &raquo;</li>
          <li><a href="mod_pyamp_web_http.html" accesskey="U">The http module</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-pyamp.web.http.constants">
<span id="the-constants-module"></span><h1>The constants module<a class="headerlink" href="#module-pyamp.web.http.constants" title="Permalink to this headline">¶</a></h1>
<p>The constants module contains classes which define constants relating
to HTTP data.</p>
<div class="section" id="the-keys-class">
<h2>The Keys class<a class="headerlink" href="#the-keys-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-19d8fbab89c58c656a7be43b8551ff9634846897.png" alt="Inheritance diagram of pyamp.web.http.constants.Keys" usemap="#inheritancef83d10db95" class="inheritance"/>
<map id="inheritancef83d10db95" name="inheritancef83d10db95">
<area shape="rect" href="../web.html#pyamp.web.http.constants.Keys" title="pyamp.web.http.constants.Keys" alt="" coords="5,7,229,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.web.http.constants.Keys">
<em class="property">class </em><tt class="descclassname">pyamp.web.http.constants.</tt><tt class="descname">Keys</tt><a class="headerlink" href="#pyamp.web.http.constants.Keys" title="Permalink to this definition">¶</a></dt>
<dd><p>The Keys class defines constants that are used as keys to
access certain dictionary values.</p>
<dl class="attribute">
<dt id="pyamp.web.http.constants.Keys.ErrorMessage">
<tt class="descname">ErrorMessage</tt><a class="headerlink" href="#pyamp.web.http.constants.Keys.ErrorMessage" title="Permalink to this definition">¶</a></dt>
<dd><p>The key for the entry containing the error message.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-contenttypes-class">
<h2>The ContentTypes class<a class="headerlink" href="#the-contenttypes-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-bd11ed890d5f760dd6d38dbc05187282f6a02c04.png" alt="Inheritance diagram of pyamp.web.http.constants.ContentTypes" usemap="#inheritanceb6e6d74682" class="inheritance"/>
<map id="inheritanceb6e6d74682" name="inheritanceb6e6d74682">
<area shape="rect" href="../web.html#pyamp.web.http.constants.ContentTypes" title="pyamp.web.http.constants.ContentTypes" alt="" coords="5,7,285,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.web.http.constants.ContentTypes">
<em class="property">class </em><tt class="descclassname">pyamp.web.http.constants.</tt><tt class="descname">ContentTypes</tt><a class="reference internal" href="../_modules/pyamp/web/http/constants.html#ContentTypes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes" title="Permalink to this definition">¶</a></dt>
<dd><p>The ContentTypes class contains constants pertaining to
different types of content.</p>
<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.Bmp">
<tt class="descname">Bmp</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.Bmp" title="Permalink to this definition">¶</a></dt>
<dd><p>A BMP image content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.Css">
<tt class="descname">Css</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.Css" title="Permalink to this definition">¶</a></dt>
<dd><p>CSS content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.Gif">
<tt class="descname">Gif</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.Gif" title="Permalink to this definition">¶</a></dt>
<dd><p>A GIF image content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.Ico">
<tt class="descname">Ico</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.Ico" title="Permalink to this definition">¶</a></dt>
<dd><p>An ICO image content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.JavaScript">
<tt class="descname">JavaScript</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.JavaScript" title="Permalink to this definition">¶</a></dt>
<dd><p>JavaScript content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.Json">
<tt class="descname">Json</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.Json" title="Permalink to this definition">¶</a></dt>
<dd><p>JSON content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.Png">
<tt class="descname">Png</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.Png" title="Permalink to this definition">¶</a></dt>
<dd><p>An PNG image content.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.ContentTypes.TextHtml">
<tt class="descname">TextHtml</tt><a class="headerlink" href="#pyamp.web.http.constants.ContentTypes.TextHtml" title="Permalink to this definition">¶</a></dt>
<dd><p>Standard text HTML content.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-statuscodes-class">
<h2>The StatusCodes class<a class="headerlink" href="#the-statuscodes-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-7dc1fb9ce6ccaca7d26ae51ab8d998d83c90d7bf.png" alt="Inheritance diagram of pyamp.web.http.constants.StatusCodes" usemap="#inheritance041ce5851c" class="inheritance"/>
<map id="inheritance041ce5851c" name="inheritance041ce5851c">
<area shape="rect" href="../web.html#pyamp.web.http.constants.StatusCodes" title="pyamp.web.http.constants.StatusCodes" alt="" coords="5,7,283,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.web.http.constants.StatusCodes">
<em class="property">class </em><tt class="descclassname">pyamp.web.http.constants.</tt><tt class="descname">StatusCodes</tt><a class="reference internal" href="../_modules/pyamp/web/http/constants.html#StatusCodes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.web.http.constants.StatusCodes" title="Permalink to this definition">¶</a></dt>
<dd><p>The StatusCodes class contains constants pertaining to
HTTP status codes.</p>
<dl class="attribute">
<dt id="pyamp.web.http.constants.StatusCodes.FileNotFound">
<tt class="descname">FileNotFound</tt><a class="headerlink" href="#pyamp.web.http.constants.StatusCodes.FileNotFound" title="Permalink to this definition">¶</a></dt>
<dd><p>The file not found status code.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.StatusCodes.Found">
<tt class="descname">Found</tt><a class="headerlink" href="#pyamp.web.http.constants.StatusCodes.Found" title="Permalink to this definition">¶</a></dt>
<dd><p>The found status code.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.StatusCodes.InternalServerError">
<tt class="descname">InternalServerError</tt><a class="headerlink" href="#pyamp.web.http.constants.StatusCodes.InternalServerError" title="Permalink to this definition">¶</a></dt>
<dd><p>The internal server error status code.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.StatusCodes.MovedPermanently">
<tt class="descname">MovedPermanently</tt><a class="headerlink" href="#pyamp.web.http.constants.StatusCodes.MovedPermanently" title="Permalink to this definition">¶</a></dt>
<dd><p>The moved permanently status code.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.StatusCodes.OK">
<tt class="descname">OK</tt><a class="headerlink" href="#pyamp.web.http.constants.StatusCodes.OK" title="Permalink to this definition">¶</a></dt>
<dd><p>The OK status code.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-headerids-class">
<h2>The HeaderIds class<a class="headerlink" href="#the-headerids-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-a377511cbcb3634b94fc7fe2c5184b3b5c47fb34.png" alt="Inheritance diagram of pyamp.web.http.constants.HeaderIds" usemap="#inheritancef4071cabb5" class="inheritance"/>
<map id="inheritancef4071cabb5" name="inheritancef4071cabb5">
<area shape="rect" href="../web.html#pyamp.web.http.constants.HeaderIds" title="pyamp.web.http.constants.HeaderIds" alt="" coords="5,7,264,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.web.http.constants.HeaderIds">
<em class="property">class </em><tt class="descclassname">pyamp.web.http.constants.</tt><tt class="descname">HeaderIds</tt><a class="reference internal" href="../_modules/pyamp/web/http/constants.html#HeaderIds"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.web.http.constants.HeaderIds" title="Permalink to this definition">¶</a></dt>
<dd><p>The HeaderIds class contains constants pertaining to header
identifiers.</p>
<dl class="attribute">
<dt id="pyamp.web.http.constants.HeaderIds.ContentType">
<tt class="descname">ContentType</tt><a class="headerlink" href="#pyamp.web.http.constants.HeaderIds.ContentType" title="Permalink to this definition">¶</a></dt>
<dd><p>The content type header id.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.HeaderIds.Location">
<tt class="descname">Location</tt><a class="headerlink" href="#pyamp.web.http.constants.HeaderIds.Location" title="Permalink to this definition">¶</a></dt>
<dd><p>The location header id.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.HeaderIds.UserAgent">
<tt class="descname">UserAgent</tt><a class="headerlink" href="#pyamp.web.http.constants.HeaderIds.UserAgent" title="Permalink to this definition">¶</a></dt>
<dd><p>The user agent header id.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-operatingsystems-class">
<h2>The OperatingSystems class<a class="headerlink" href="#the-operatingsystems-class" title="Permalink to this headline">¶</a></h2>
<p class="graphviz">
<img src="../_images/inheritance-32715320712f3b718240e868afd9c4194cc5260e.png" alt="Inheritance diagram of pyamp.web.http.constants.OperatingSystems" usemap="#inheritanced4be8a4029" class="inheritance"/>
<map id="inheritanced4be8a4029" name="inheritanced4be8a4029">
<area shape="rect" href="../web.html#pyamp.web.http.constants.OperatingSystems" title="pyamp.web.http.constants.OperatingSystems" alt="" coords="5,7,320,33"/>
</map>
</p>
<dl class="class">
<dt id="pyamp.web.http.constants.OperatingSystems">
<em class="property">class </em><tt class="descclassname">pyamp.web.http.constants.</tt><tt class="descname">OperatingSystems</tt><a class="reference internal" href="../_modules/pyamp/web/http/constants.html#OperatingSystems"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems" title="Permalink to this definition">¶</a></dt>
<dd><p>The OperatingSystems class contains constants pertaining to
the strings used to identify various operating systems.</p>
<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.BeOS">
<tt class="descname">BeOS</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.BeOS" title="Permalink to this definition">¶</a></dt>
<dd><p>The BeOS OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.Linux">
<tt class="descname">Linux</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.Linux" title="Permalink to this definition">¶</a></dt>
<dd><p>The Linux OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.MacOS">
<tt class="descname">MacOS</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.MacOS" title="Permalink to this definition">¶</a></dt>
<dd><p>The Mac OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.OS2">
<tt class="descname">OS2</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.OS2" title="Permalink to this definition">¶</a></dt>
<dd><p>The OS/2 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.OpenBSD">
<tt class="descname">OpenBSD</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.OpenBSD" title="Permalink to this definition">¶</a></dt>
<dd><p>The OpenBSD OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.QNX">
<tt class="descname">QNX</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.QNX" title="Permalink to this definition">¶</a></dt>
<dd><p>The QNX OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.SearchBot">
<tt class="descname">SearchBot</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.SearchBot" title="Permalink to this definition">¶</a></dt>
<dd><p>The SearchBot OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.SunOS">
<tt class="descname">SunOS</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.SunOS" title="Permalink to this definition">¶</a></dt>
<dd><p>The Sun OS OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.Windows2000">
<tt class="descname">Windows2000</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.Windows2000" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows 2000 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.Windows3_11">
<tt class="descname">Windows3_11</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.Windows3_11" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows 3.11 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.Windows7">
<tt class="descname">Windows7</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.Windows7" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows 7 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.Windows95">
<tt class="descname">Windows95</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.Windows95" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows 95 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.Windows98">
<tt class="descname">Windows98</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.Windows98" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows 98 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.WindowsME">
<tt class="descname">WindowsME</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.WindowsME" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows ME OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.WindowsNT4">
<tt class="descname">WindowsNT4</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.WindowsNT4" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows NT 4.0 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.WindowsServer2003">
<tt class="descname">WindowsServer2003</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.WindowsServer2003" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows Server 2003 OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.WindowsVista">
<tt class="descname">WindowsVista</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.WindowsVista" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows Vista OS.</p>
</dd></dl>

<dl class="attribute">
<dt id="pyamp.web.http.constants.OperatingSystems.WindowsXP">
<tt class="descname">WindowsXP</tt><a class="headerlink" href="#pyamp.web.http.constants.OperatingSystems.WindowsXP" title="Permalink to this definition">¶</a></dt>
<dd><p>The Windows XP OS.</p>
</dd></dl>

</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">The constants module</a><ul>
<li><a class="reference internal" href="#the-keys-class">The Keys class</a></li>
<li><a class="reference internal" href="#the-contenttypes-class">The ContentTypes class</a></li>
<li><a class="reference internal" href="#the-statuscodes-class">The StatusCodes class</a></li>
<li><a class="reference internal" href="#the-headerids-class">The HeaderIds class</a></li>
<li><a class="reference internal" href="#the-operatingsystems-class">The OperatingSystems class</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="pyamp_web_http_page.html"
                        title="previous chapter">The page module</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="pyamp_web_http_argument.html"
                        title="next chapter">The argument module</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/_generated/pyamp_web_http_constants.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="pyamp_web_http_argument.html" title="The argument module"
             >next</a> |</li>
        <li class="right" >
          <a href="pyamp_web_http_page.html" title="The page module"
             >previous</a> |</li>
        <li><a href="../index.html">pyamp v1.2 documentation</a> &raquo;</li>
          <li><a href="mod_pyamp.html" >The pyamp module</a> &raquo;</li>
          <li><a href="mod_pyamp_web.html" >The web module</a> &raquo;</li>
          <li><a href="mod_pyamp_web_http.html" >The http module</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2012, Brett Ponsler.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
    </div>
  </body>
</html>